<!DOCTYPE html>
<!--
To change this license header, choose License Headers in Project Properties.
To change this template file, choose Tools | Templates
and open the template in the editor.
-->
<html>
    <head>
        <meta charset="UTF-8">
        <title>输出笑脸</title>
    </head>
    <body>
        <?php
        // put your code here
        $f=100;
        $fs=(int)($f/10);
        $y='<img src="images/cry.jpg" width="100" height="100" alt="cry"/>';
        $x='<img src="images/haha.gif" width="100" height="100" alt="haha"/>';
        switch ($fs){
            case 10:
                echo"{$x}{$x}{$x}{$x}{$x}";
                break;
             case 9:
                echo"{$x}{$x}{$x}{$x}";
                break;
             case 8:
                echo"{$x}{$x}{$x}";
                break;
             case 7:
                echo"{$x}{$x}";
                break;
             case 6:
                echo"{$x}";
                break;
            default:
                echo"{$y}";
                break;
        }
        ?>  

    </body> 

</html>
